package org.study.redis.search.boot.document;

import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
 * 作用描述
 *
 * @author doveylovey
 * @version v1.0.0
 * @email 1135782208@qq.com
 * @date 2025年04月27日
 */
@Repository
public interface StudentRepository extends CrudRepository<Student, String> {
    Optional<Student> findByName(String name);

    Optional<Student> searchByLastName(String name);
}
